﻿//  -------------------- iSharePoint -------------------- //
// 
//  Company:	IT Complex, LLC
//  Project:	Smart.Common
//  File name:	ContentTypeAttribute.cs
//  Developer:	Solomatov Igor
//  Created:	15.04.2012
// 
//  -------------------- iSharePoint -------------------- //

using System;

namespace Smart.Common.Entities
{
	/// <summary>
	/// Attribute SharePoint ContentType/Class mapping
	/// </summary>
	[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = true)]
	public sealed class ContentTypeAttribute : Attribute
	{
		public readonly string contentTypeName;

		/// <summary>
		/// Attribute SharePoint ContentType/Class mapping
		/// </summary>
		/// <param name="contentTypeName">SharePoint ContentType name</param>
		public ContentTypeAttribute(string contentTypeName)
		{
			this.contentTypeName = contentTypeName;
		}

		/// <summary>
		/// SharePoint ContentType name
		/// </summary>
		public string ContentTypeName
		{
			get { return contentTypeName; }
		}
	}
}